
{{ define "title" }}
  {{ .Title }} &ndash; {{ .Site.Title }}
{{ end }}
{{ define "main" }}
{{ $currentUrl := .RelPermalink }}
{{ $tutorials  := where site.Pages ".Layout" "tutorials" }}
{{ $async      := where $tutorials ".Params.group" "eq" "async" }}
{{ $auth       := where $tutorials ".Params.group" "eq" "auth" }}
{{ $basic      := where $tutorials ".Params.group" "eq" "basic" }}

            <div class="headertext">Documentation</div>
  </div>
        </div>
        </div>

    {{ partial "docs-topnav.html" . }}

<div class="quickstartcols">

<div class="quickstartcol1">

<h8>Tutorials</h8>

{{ range $auth }}
{{ $isCurrentPage := eq $currentUrl .RelPermalink }}
{{ $title := .Params.short }}
<a href="{{ .RelPermalink }}"{{ if $isCurrentPage }} class="active"{{ end }}>
  {{ $title }}
</a>
{{ end }}

{{ range $async }}
{{ $isCurrentPage := eq $currentUrl .RelPermalink }}
{{ $title := .Params.short }}
<a href="{{ .RelPermalink }}"{{ if $isCurrentPage }} class="active"{{ end }}>
  {{ $title }}
</a>
{{ end }}

<h8>Basic</h8>

{{ range $basic }}
{{ $isCurrentPage := eq $currentUrl .RelPermalink }}
{{ $title := .Params.short }}
<a href="{{ .RelPermalink }}"{{ if $isCurrentPage }} class="active"{{ end }}>
  {{ $title }}
</a>
{{ end }}

</div>

<div class="quickstartcol2" style="margin-top:4%">
<h3 style="margin-top:0px;">{{ .Title }}</h3>
  {{ with .Params.description }}
  <p class="lead">
    {{ . | markdownify }}
  </p>
  {{ end }}

  {{ .Content }}
</div>
</div>

</div>
{{ end }}
